@echo off
setlocal enabledelayedexpansion

REM 设置文件夹路径
set "FOLDER_PATH=."

REM 删除所有 .c 文件
for /r "%FOLDER_PATH%" %%F in (*.c) do (
    del "%%F"
)

REM 删除所有 .h 文件
for /r "%FOLDER_PATH%" %%F in (*.h) do (
    del "%%F"
)

REM 删除所有 .exe 文件
for /r "%FOLDER_PATH%" %%F in (*.exe) do (
    del "%%F"
)

echo Done cleaning .c, .h, and .exe files.
endlocal
